package com.sky.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class RedisDataBaseNameConstant {

    // TODO这里的TimeOut是写在application.properties文件中的
    public static long RedisTimeout;


    public static final String SHOP_STATUS_KEY = "shop_status";
    public static final String DISH_KEY = "dish_";
    public static final String SET_MEAL_KEY_REDIS = "setmealCache::";
    public static final String SETMEALKEYNAME = "setmealCache";
    public static final String SHOPPINGCARTKEY = "shoppingCart";
    public static final String SHOPPING_CART_KEY = "shoppingCart::";



    @Value("${RedisTimeout}")
    private long timeout;

    @javax.annotation.PostConstruct
    public void init() {
        RedisTimeout = timeout;
    }
}